package com.adou.d1;

import java.util.Scanner;

public class ScannerDemo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入年龄：");
        int age = sc.nextInt();//等待用户输入整数
        System.out.println("你的年龄是：" + age);

        System.out.println("请输入姓名：");
        String name = sc.next();//等待用户输入字符串
        System.out.println("欢迎您进入系统，：" + name);

    }
}
